FROM alpine:3.13.4
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/main/" > /etc/apk/repositories
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/community/" >> /etc/apk/repositories
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata

ADD tw-education-prod /

ADD config /config

ENTRYPOINT ["/tw-education-prod","server","-c", "/config/settings.yml"]
